package monopoly;
import java.io.IOException;

public class main{// extends PApplet{
        public void setup(){
                //size(800,800);
                display();
                try {
                        intro.main();
                } catch (IOException e) {
                        e.printStackTrace();
                } 
                do {
                        if (vars.turn == 0) {
                                try {
                                        player_turn.turn();
                                } catch (IOException e) {
                                        e.printStackTrace();
                                }
                        } else {
                                if (vars.turn == 1) {
                                        try {
                                                computer.turn();
                                        } catch (IOException e) {
                                                e.printStackTrace();
                                        }
                                }               
                        }
                } while (vars.finished == 0);
                if (vars.finished == 1) {
                        System.out.println("You ran out of money and lost the game.");
                } else {
                        System.out.println("The computer ran out of money and lost the game");
                }
        }

        private void display() {
                //line(100,200,200,100);        
        }
}